//
//  PhotosView.h
//  KingSelected
//
//  Created by 杨鹏 on 2023/11/2.
//

#import "BaseView.h"

NS_ASSUME_NONNULL_BEGIN

@protocol PhotosViewDelegate <NSObject>

- (void)photosTaped:(UIImageView *)imgV;

@end

@interface PhotosView : BaseView

@property (nonatomic, weak) id<PhotosViewDelegate> delegate;

@property (nonatomic, strong) NSArray *photos;
@property (nonatomic, strong) NSArray *images;

/// uiimage
@property (nonatomic, strong) NSArray *phototImages;

+ (PhotosView *)photosViewWithWidth:(CGFloat)width margin:(CGFloat)margin;
+ (CGSize)sizeWithCount:(NSInteger)count;
+ (CGSize)sizeWithCount:(NSInteger)count width:(CGFloat)width margin:(CGFloat)margin;
+ (CGSize)sizeWithImages:(NSArray *)images width:(CGFloat)width margin:(CGFloat)margin;

- (void)updateWidth:(CGFloat)width;

@end

NS_ASSUME_NONNULL_END
